package com.neusoft.nepm.controller;

import com.neusoft.nepm.po.Aqi;
import com.neusoft.nepm.service.IAqiService;
import com.neusoft.nepm.vo.ResponseData;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author zouran
 * createDate：2023/6/19  15:48
 */
@RestController
@RequestMapping("/aqi")
@Api(tags = "空气质量管理接口")
public class AqiController {
    @Resource
    private IAqiService aqiService;

    @GetMapping("/listAqiAll")
    @ApiOperation(value = "获取空气质量等级")
    public ResponseData<List<Aqi>> listAqiAll(){
        return aqiService.listAqiAll();
    }
}
